#ifndef IMAGELOADTHREAD_H
#define IMAGELOADTHREAD_H

#include <QThread>
#include <QStringList>
class ImageInstance;

class ImageLoadThread : public QThread
{
    Q_OBJECT
public:
    explicit ImageLoadThread(const QStringList &paths = QStringList(), QObject *parent = 0):m_paths(paths), QThread(parent){}

    void setImagePaths(const QStringList &paths) { m_paths = paths; }
    void run();

signals:
    void resultReady(ImageInstance *image);

private:
    QStringList m_paths;
};

#endif // IMAGELOADTHREAD_H
